package cn.zl.ymcc.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.Getter;
import lombok.Setter;
import lombok.ToString;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author zl
 * @since 2025-10-31
 */
    @Getter
    @Setter
    @ToString
    @Accessors(chain = true)
    @TableName("t_course_order_item")
        public class CourseOrderItem implements Serializable {

        private static final long serialVersionUID = 1L;
    
                        @TableId(value = "id", type = IdType.AUTO)
                private Long id;

            /**
             * 对应秒杀订单
             */
        @TableField("order_id")
    private Long orderId;

            /**
             * 秒杀课程的价格
             */
        @TableField("amount")
    private BigDecimal amount;

            /**
             * 秒杀到课程的数量
             */
        @TableField("count")
    private Byte count;

            /**
             * 创建时间
             */
        @TableField("create_time")
    private LocalDateTime createTime;

        @TableField("update_time")
    private LocalDateTime updateTime;

            /**
             * 秒杀课程ID，不是课程ID
             */
        @TableField("course_id")
    private Long courseId;

            /**
             * 秒杀课程名字
             */
        @TableField("course_name")
    private String courseName;

            /**
             * 封面
             */
        @TableField("course_pic")
    private String coursePic;

        @TableField("version")
    private Integer version;

        @TableField("order_no")
    private String orderNo;
    }